package com.jfeat.am.module.wegou.services.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2018-02-27
 */
@TableName("wg_product_type")
public class ProductType extends Model<ProductType> {

    private static final long serialVersionUID = 1L;

	private Long pid;
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 类别名称
     */
	@TableField("type_name")
	private String typeName;
    /**
     * 中文名称
     */
	@TableField("zh_type_name")
	private String zhTypeName;
    /**
     * 排序号
     */
	@TableField("sort_number")
	private Integer sortNumber;
	@TableField("store_id")
	private Long storeId;


	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getZhTypeName() {
		return zhTypeName;
	}

	public void setZhTypeName(String zhTypeName) {
		this.zhTypeName = zhTypeName;
	}

	public Integer getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(Integer sortNumber) {
		this.sortNumber = sortNumber;
	}

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public static final String PID = "pid";

	public static final String ID = "id";

	public static final String TYPE_NAME = "type_name";

	public static final String ZH_TYPE_NAME = "zh_type_name";

	public static final String SORT_NUMBER = "sort_number";

	public static final String STORE_ID = "store_id";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProductType{" +
			"pid=" + pid +
			", id=" + id +
			", typeName=" + typeName +
			", zhTypeName=" + zhTypeName +
			", sortNumber=" + sortNumber +
			", storeId=" + storeId +
			"}";
	}
}
